<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <div id="app">
        <p v-if="gender===1">性别：男</p>
        <p v-else>性别：女</p>
        <hr>
        <p v-if="score>=90">优秀</p>
        <p v-else-if="score>=80">良好</p>
        <p v-else-if="score>=70">中等</p>
        <p v-else-if="score>=60">及格</p>
        <p v-else>不及格</p>
    </div>
    <script>


        const { createApp } = Vue
        createApp({
            data() {
                return {
                    gender: 1,
                    score: 70
                }
            }
        }).mount('#app')
    </script>
</body>

</html>